﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="mgrStages.aspx.cs" Inherits="WebUI.Pages.mgrStages" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTop" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" runat="server">
    <div id="content">
        <h2>Gerenciar Estágios de Venda</h2>
        <div id="new">
            <table>
                <tr>
                    <td>Nome:</td>
                    <td><asp:TextBox ID="txtNome" runat="server"></asp:TextBox></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td><asp:Button ID="cmdNovo" runat="server" Text="Novo" onclick="cmdNovo_Click" /></td>
                </tr>
            </table>
        </div>
        <div id="search">
            <asp:Repeater ID="rpEstagiosVenda" runat="server" 
                onitemcommand="rpEstagiosVenda_ItemCommand">
                <HeaderTemplate>
                    <table id="tablegrid" width="400px">
                        <thead>
                            <th scope="col">idEstagioVenda</th>
                            <th scope="col">Estagio de Vendas</th>
                            <th scope="col"></th>
                        </thead>
                        <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td> <%# Eval("idEstagioVenda") %> </td>
                        <td> <%# Eval("DescEstagioVenda") %></td>
                        <td><asp:Button runat="server" ID="cmdEdit" CommandName="cmdEdit" CommandArgument= <%# Eval("idEstagioVenda") %> Text="Editar"/></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                        </tbody>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
</asp:Content>
